import { POSTGROUP } from "../util";
const url = {
  ProductPrice: '/capi/channel/open/productprice',
  ProductDetailCluster: '/capi/product/open/productdetailcluster',
  Activityinfo: '/capi/exchange/open/activityinfo',
  Getcode: '/capi/exchange/drawlot/getcode',
  Checkcode: '/capi/exchange/drawlot/checkcode',
  TradeInfoList: '/capi/order/open/tradeinfolist',
  Identifysuccess: '/capi/exchange/drawlot/identifysuccess'
}

// 商品价格
function ProductPrice(params = {}) {
  return POSTGROUP(url.ProductPrice, params, false)
}
// 交易记录
function TradeInfoList(params = {}) {
  return POSTGROUP(url.TradeInfoList, params, false)
}

// 商品详情(行情、评论、Po照聚合)
function ProductDetailCluster(params = {}) {
  return POSTGROUP(url.ProductDetailCluster, params, false)
}
// 获取活动信息
function Activityinfo() {
  return POSTGROUP(url.Activityinfo, true)
}
// 获取活动信息
function Getcode(params = {}) {
  return POSTGROUP(url.Getcode, params, true)
}
// 验证兑奖码
function Checkcode(params = {}) {
  return POSTGROUP(url.Checkcode, params, true)
}
// 认证成功之后调的接口生成鞋券信息
function Identifysuccess(params = {}) {
  return POSTGROUP(url.Identifysuccess, params, true)
}


export { ProductPrice, TradeInfoList, Activityinfo, Checkcode, ProductDetailCluster, Identifysuccess, Getcode }
